# data = [{'objects_list': {'longitude': 1, 'latitude': 1, 'lat': 1}},
#         {'objects_list': {'longitude': 2, 'latitude': 2, 'lat': 2}},
#         {'objects_list': {'longitude': 3, 'latitude': 3, 'lat': 3}}]
#
# a = [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10),
#      (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16)]
# b = [(2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11),
#      (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (1, 1)]
# c = [(3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12),
#      (13, 13), (14, 14), (15, 15), (16, 16), (1, 1), (2, 2)]
#
# for i in range(len(data)):
#     data[i]['objects_list']['longitude'], data[i]['objects_list']['latitude'], data[i]['objects_list']['lat'] = a[i]
#
# print(data)

# list=[]
# rc021lane_5 = [(112.9650925, 28.2193274), (112.9650264, 28.2193683), (112.9649618, 28.2194078), (112.9648977, 28.2194538), (112.9648318, 28.2194976), (112.9647657, 28.2195454), (112.9646995, 28.2195874), (112.9646374, 28.2196293), (112.9645758, 28.2196716), (112.9645140, 28.2197165), (112.9644494, 28.2197624), (112.9643887, 28.2198069), (112.9643238, 28.2198573), (112.9642606, 28.2199068), (112.9642052, 28.2199471), (112.9641414, 28.2200031)]
# rc020lane_5 = [(112.9640856, 28.2200446), (112.9640206, 28.2200992), (112.9639622, 28.2201471), (112.9639017, 28.2201936), (112.9638412, 28.2202399), (112.9637826, 28.2202888), (112.9637218, 28.2203368), (112.9636620, 28.2203857), (112.9636001, 28.2204370), (112.9635387, 28.2204888), (112.9634802, 28.2205356), (112.9634190, 28.2205872), (112.9633592, 28.2206343), (112.9633017, 28.2206827), (112.9632418, 28.2207235), (112.9631796, 28.2207781)]
# rc019lane_5 = [(112.9631208, 28.2208214), (112.9630647, 28.2208691), (112.9630028, 28.2209218), (112.9629424, 28.2209666), (112.9628815, 28.2210160), (112.9628217, 28.2210694), (112.9627642, 28.2211148), (112.9627000, 28.2211624), (112.9626456, 28.2212147), (112.9625844, 28.2212625), (112.9625202, 28.2213091), (112.9624613, 28.2213571), (112.9624025, 28.2214051), (112.9623443, 28.2214570), (112.9622842, 28.2215029), (112.9622257, 28.2215485)]
# rc018lane_5 = [(112.9621643, 28.2215983), (112.9621084, 28.2216481), (112.9620429, 28.2217038), (112.9619871, 28.2217445), (112.9619235, 28.2217966), (112.9618690, 28.2218417), (112.9618022, 28.2218926), (112.9617414, 28.2219444), (112.9616829, 28.2219877), (112.9616244, 28.2220324), (112.9615635, 28.2220834), (112.9615014, 28.2221314), (112.9614445, 28.2221815), (112.9613830, 28.2222307), (112.9613219, 28.2222810), (112.9612621, 28.2223261)]
# rc017lane_5 = [(112.9611982, 28.2223739), (112.9611339, 28.2224221), (112.9610698, 28.2224658), (112.9610092, 28.2225064), (112.9609445, 28.2225537), (112.9608806, 28.2225959), (112.9608164, 28.2226398), (112.9607492, 28.2226837), (112.9606850, 28.2227228), (112.9606186, 28.2227628), (112.9605520, 28.2228070), (112.9604859, 28.2228494), (112.9604166, 28.2228868), (112.9603524, 28.2229248), (112.9602826, 28.2229628), (112.9602100, 28.2230028)]
# rc016lane_5 = [(112.9601436, 28.2230388), (112.9600729, 28.2230776), (112.9600034, 28.2231130), (112.9599333, 28.2231494), (112.9598607, 28.2231845), (112.9597902, 28.2232208), (112.9597179, 28.2232524), (112.9596462, 28.2232857), (112.9595732, 28.2233196), (112.9595014, 28.2233508), (112.9594265, 28.2233835), (112.9593519, 28.2234170), (112.9592821, 28.2234455), (112.9592073, 28.2234770), (112.9591333, 28.2235031), (112.9590587, 28.2235323)]
# rc015lane_5 = [(112.9589862, 28.2235592), (112.9589083, 28.2235905), (112.9588331, 28.2236176), (112.9587593, 28.2236435), (112.9586824, 28.2236673), (112.9586041, 28.2236950), (112.9585306, 28.2237159), (112.9584541, 28.2237393), (112.9583738, 28.2237650), (112.9582955, 28.2237867), (112.9582156, 28.2238087), (112.9581408, 28.2238279), (112.9580619, 28.2238484), (112.9579844, 28.2238704), (112.9579044, 28.2238880), (112.9578275, 28.2239077)]
# rc014lane_5 = [(112.9577469, 28.2239254), (112.9576688, 28.2239406), (112.9575902, 28.2239564), (112.9575113, 28.2239746), (112.9574301, 28.2239914), (112.9573515, 28.2240049), (112.9572736, 28.2240184), (112.9571710, 28.2240366), (112.9570894, 28.2240456), (112.9570085, 28.2240585), (112.9569272, 28.2240688), (112.9568461, 28.2240808), (112.9567712, 28.2240898), (112.9566879, 28.2240985), (112.9566063, 28.2241070), (112.9565244, 28.2241126)]
# rc013lane_5 = [(112.9564456, 28.2241209), (112.9563630, 28.2241255), (112.9562810, 28.2241308), (112.9561988, 28.2241361), (112.9561196, 28.2241398), (112.9560334, 28.2241423), (112.9559541, 28.2241439), (112.9558715, 28.2241480), (112.9557910, 28.2241491), (112.9557120, 28.2241501), (112.9556278, 28.2241494), (112.9555459, 28.2241469), (112.9554633, 28.2241472), (112.9553841, 28.2241441), (112.9553042, 28.2241410), (112.9552206, 28.2241358)]
# rc012lane_5 = [(112.9551387, 28.2241311), (112.9550568, 28.2241241), (112.9549739, 28.2241186), (112.9548950, 28.2241100), (112.9548164, 28.2241031), (112.9547345, 28.2240974), (112.9546502, 28.2240887), (112.9545704, 28.2240797), (112.9544881, 28.2240698), (112.9544108, 28.2240588), (112.9543336, 28.2240483), (112.9542510, 28.2240349), (112.9541697, 28.2240242), (112.9540906, 28.2240105), (112.9540084, 28.2239947), (112.9539301, 28.2239809)]
# rc008lane_5 = [(112.9538492, 28.2239661), (112.9537699, 28.2239531), (112.9536927, 28.2239378), (112.9536078, 28.2239190), (112.9535319, 28.2239060), (112.9534533, 28.2238932), (112.9533721, 28.2238761), (112.9532923, 28.2238607), (112.9532140, 28.2238458), (112.9531310, 28.2238327), (112.9530524, 28.2238198), (112.9529508, 28.2238038), (112.9528748, 28.2237892), (112.9527946, 28.2237770), (112.9527137, 28.2237632), (112.9526338, 28.2237501)]
# rc007lane_5 = [(112.9525556, 28.2237361), (112.9524744, 28.2237235), (112.9523944, 28.2237110), (112.9523119, 28.2236983), (112.9522342, 28.2236878), (112.9521500, 28.2236746), (112.9520695, 28.2236571), (112.9519895, 28.2236457), (112.9519110, 28.2236347), (112.9518314, 28.2236266), (112.9517478, 28.2236131), (112.9516702, 28.2236015), (112.9515910, 28.2235937), (112.9515083, 28.2235788), (112.9514257, 28.2235663), (112.9513456, 28.2235550)]
# rc006lane_5 = [(112.9512633, 28.2235453), (112.9511844, 28.2235355), (112.9511058, 28.2235236), (112.9510242, 28.2235107), (112.9509437, 28.2234997), (112.9508634, 28.2234900), (112.9507821, 28.2234787), (112.9507045, 28.2234662), (112.9506212, 28.2234552), (112.9505414, 28.2234447), (112.9504611, 28.2234323), (112.9503802, 28.2234214), (112.9502989, 28.2234115), (112.9502230, 28.2234004), (112.9501398, 28.2233897), (112.9500579, 28.2233765)]
# rc005lane_5 = [(112.9499789, 28.2233634), (112.9498980, 28.2233529), (112.9498160, 28.2233413), (112.9497348, 28.2233303), (112.9496529, 28.2233191), (112.9495747, 28.2233069), (112.9494937, 28.2232979), (112.9494175, 28.2232851), (112.9493366, 28.2232723), (112.9492516, 28.2232626), (112.9491754, 28.2232545), (112.9490951, 28.2232420), (112.9490128, 28.2232286), (112.9489339, 28.2232178), (112.9488541, 28.2232052), (112.9487711, 28.2231945)]
# rc004lane_5 = [(112.9486899, 28.2231841), (112.9486119, 28.2231733), (112.9485323, 28.2231625), (112.9484524, 28.2231479), (112.9483678, 28.2231389), (112.9482932, 28.2231249), (112.9482076, 28.2231144), (112.9481290, 28.2231042), (112.9480491, 28.2230916), (112.9479668, 28.2230786), (112.9478865, 28.2230678), (112.9478066, 28.2230541), (112.9477264, 28.2230430), (112.9476458, 28.2230295), (112.9475642, 28.2230179), (112.9474856, 28.2230036)]
# rc003lane_5 = [(112.9474047, 28.2229923), (112.9473243, 28.2229812), (112.9472442, 28.2229704), (112.9471652, 28.2229581), (112.9470873, 28.2229453), (112.9470023, 28.2229298), (112.9469241, 28.2229170), (112.9468465, 28.2229073), (112.9467676, 28.2228922), (112.9466823, 28.2228795), (112.9466030, 28.2228665), (112.9465268, 28.2228536), (112.9464412, 28.2228387), (112.9463649, 28.2228282), (112.9462864, 28.2228301), (112.9462017, 28.2228002)]
# rc002lane_5 = [(112.9461218, 28.2227871), (112.9460418, 28.2227736), (112.9459606, 28.2227616), (112.9458843, 28.2227511), (112.9457994, 28.2227389), (112.9457204, 28.2227258), (112.9456426, 28.2227144), (112.9455616, 28.2227003), (112.9454823, 28.2226910), (112.9453984, 28.2226789), (112.9453177, 28.2226675), (112.9452381, 28.2226552), (112.9451559, 28.2226461), (112.9450767, 28.2226351), (112.9449997, 28.2226229), (112.9449164, 28.2226130)]
# rc001lane_5 = [(112.9448334, 28.2225989), (112.9447572, 28.2225882), (112.9446753, 28.2225779), (112.9445927, 28.2225643), (112.9445128, 28.2225528), (112.9444337, 28.2225418), (112.9443535, 28.2225301), (112.9442759, 28.2225210), (112.9441930, 28.2225071), (112.9441120, 28.2224939), (112.9440277, 28.2224829), (112.9439491, 28.2224741), (112.9438645, 28.2224625), (112.9437889, 28.2224502), (112.9437103, 28.2224385), (112.9436271, 28.2224268)]
#
# indices = [1, 4, 7,10,13,16,]
#
# for i in indices:
#     list.append(rc001lane_5[i-1])
# print(list)
from utils.config import Config

config = Config('./conf/config.ini')
#jingweidu_list=eval(config.read_value('jingweidu_1s', 'RC031lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC030lane_5'))
#jingweidu_list=eval(config.read_value('jingweidu', 'RC031lane_5')+ ',' +config.read_value('jingweidu', 'RC030lane_5')+ ',' +config.read_value('jingweidu', 'RC029lane_5')+ ',' +config.read_value('jingweidu', 'RC028lane_5')+ ',' +config.read_value('jingweidu', 'RC025lane_5')+ ',' +config.read_value('jingweidu', 'RC024lane_5')+ ',' +config.read_value('jingweidu', 'RC023lane_5')+ ',' +config.read_value('jingweidu', 'RC022lane_5')+ ',' +config.read_value('jingweidu', 'RC021lane_5')+ ',' +config.read_value('jingweidu', 'RC020lane_5')+ ',' +config.read_value('jingweidu', 'RC019lane_5')+ ',' +config.read_value('jingweidu', 'RC018lane_5')+ ',' +config.read_value('jingweidu', 'RC017lane_5')+ ',' +config.read_value('jingweidu', 'RC016lane_5')+ ',' +config.read_value('jingweidu', 'RC015lane_5')+ ',' +config.read_value('jingweidu', 'RC014lane_5')+ ',' +config.read_value('jingweidu', 'RC013lane_5')+ ',' +config.read_value('jingweidu', 'RC012lane_5')+ ',' +config.read_value('jingweidu', 'RC008lane_5')+ ',' +config.read_value('jingweidu', 'RC007lane_5')+ ',' +config.read_value('jingweidu', 'RC006lane_5')+ ',' +config.read_value('jingweidu', 'RC005lane_5')+ ',' +config.read_value('jingweidu', 'RC004lane_5')+ ',' +config.read_value('jingweidu', 'RC003lane_5')+ ',' +config.read_value('jingweidu', 'RC002lane_5')+ ',' +config.read_value('jingweidu', 'RC001lane_5'))
#jingweidu_list=eval(config.read_value('jingweidu_1s', 'RC031lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC030lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC029lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC028lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC025lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC024lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC023lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC022lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC021lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC020lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC019lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC018lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC017lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC016lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC015lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC014lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC013lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC012lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC008lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC007lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC006lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC005lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC004lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC003lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC002lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC001lane_5'))
#jingweidu_list=eval(config.read_value('jingweidu_1s', 'RC031lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC030lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC029lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC028lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC025lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC024lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC023lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC022lane_5')+ ',' +config.read_value('jingweidu_1s', 'RC021lane_5'))

# jingweidu_list=config.read_value('jingweidu_1s', 'RC020lane_5')
# print(jingweidu_list)

